package com.cltech.service.sys;

import com.cltech.dto.AuthorizationDto;
import com.cltech.dto.SysRoleDto;
import com.cltech.dto.TreeNode;
import com.cltech.entity.sys.SysPermission;
import com.cltech.entity.sys.SysRole;
import com.cltech.entity.sys.SysUser;
import com.cltech.frame.base.BaseService;
import com.cltech.frame.result.ResponseBean;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by Administrator on 2019/3/6.
 */
public interface SysRoleService extends BaseService<SysRole, String> {
    ResponseBean<SysRole> findByRoleCode(String roleCode);

    Page<SysRoleDto> findAll(Map<String, String[]> queryParameters, int pageNo, int pageSize);

    ResponseBean<SysRole> addOrUpdate(SysRoleDto dto);

    ResponseBean<Void> delete(String id);

    ResponseBean<Set<SysRole>> findByIds(List<String> ids);

    ResponseBean<Void> authorization(AuthorizationDto authorizationDto);
}
